package org.example.myleet.p592;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("2/1".equals(solution.fractionAddition("5/3+1/3")));
        Assert.isTrue("0/1".equals(solution.fractionAddition("-1/2+1/2")));
        Assert.isTrue("1/3".equals(solution.fractionAddition("-1/2+1/2+1/3")));
        Assert.isTrue("-1/6".equals(solution.fractionAddition("1/3-1/2")));
        Assert.isTrue("-5/6".equals(solution.fractionAddition("-1/3-1/2")));
        Assert.isTrue("11/2".equals(solution.fractionAddition("1/3+1/2+2/3+4/1")));
    }
}
